Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-props-sort

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-props-sort

JSS plugin that ensures style properties extend each other instead of override

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
117K
increased by12.15%
Maintainers
1
Weekly downloads
 
Created
Source

JSS plugin that ensures style properties extend each other instead of override

Inspired by React Native. When using this plugin, more specific properties will not be overwritten by less specific.

Demo - JSS

![Gitter](https://badges.gitter.im/Join Chat.svg)

Usage example

import jss from 'jss'
import propsSort from 'jss-props-sort'

jss.use(propsSort())

const sheet = jss.createStyleSheet({
  container: {
    'border-left': '1px solid red',
    border: '3px solid green'
  }
})
console.log(sheet.toString())
.jss-0-0 {
  border: 3px solid green;
  border-left: 1px solid red;
}
console.log(sheet.classes)
{ container: "jss-0-0" }

Run tests

npm i
npm run test

License

MIT

Keywords

FAQs

Package last updated on 09 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc